package com.xiguanlezz.cn.api.remote.request;

import lombok.Getter;
import lombok.Setter;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/11/26 21:00
 * @Description：订阅服务实例请求类
 */
@Setter
@Getter
public class SubscribeServiceRequest extends AbstractNamingRequest {
    // 订阅操作，true表示订阅操作，false则为取消订阅操作
    private boolean subscribe;
    // 订阅或者取消订阅的集群名
    private String clusters;

    public SubscribeServiceRequest() {
    }

    public SubscribeServiceRequest(String namespace, String groupName, String serviceName, String clusters,
                                   boolean subscribe) {
        super(namespace, serviceName, groupName);
        this.clusters = clusters;
        this.subscribe = subscribe;
    }

}
